package com.r2coding.storage.engine.core.context;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.InputStream;
import java.io.Serializable;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2023/10/20 12:54
 **/
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class StoreFileChunkContext implements Serializable {

    private static final long serialVersionUID = 511355685140957340L;

    private String filename;

    private String identifier;

    private Long totalSize;

    private InputStream inputStream;

    private String realPath;

    private Integer totalChunks;

    private Integer chunkNumber;

    private Long currentChunkSize;

    private Long userId;
}
